home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / enscript.4 / enscript / enscript-1.4.0 / configure.in < prev    next >
Encoding:
Text File  |  1996-06-29  |  2.5 KB  |  120 lines

  1. dnl Process this file with autoconf to produce a configure script.
  2.  
  3. AC_INIT(latin1.txt)
  4. AC_CONFIG_HEADER(config.h)
  5. AC_PREREQ(2.7)
  6.  
  7. AC_REVISION($Revision: 1.18 $)
  8.  
  9. dnl Automake definitions
  10. PACKAGE=enscript
  11. VERSION=1.4.0
  12. AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
  13. AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
  14. AC_SUBST(PACKAGE)
  15. AC_SUBST(VERSION)
  16.  
  17. dnl AC_PROG_INSTALL
  18. fp_PROG_INSTALL
  19.  
  20. AC_ARG_PROGRAM
  21. AC_PROG_MAKE_SET
  22.  
  23. AC_ARG_WITH(cc,
  24. [  --with-cc(=CC)      use system's native compiler (or compiler CC)],
  25.   if test "X$withval" != "Xno"; then
  26.     if test "X$withval" = "Xyes"; then
  27.       CC='cc'
  28.     else 
  29.       CC=$withval
  30.     fi
  31.     CFLAGS="$CFLAGS -I/usr/local/include"
  32.     LDFLAGS="$LDFLAGS -L/usr/local/lib"
  33.     echo "using compiler CC=$CC"
  34.   fi
  35. )
  36.  
  37. if test "X$CC" = "X"; then
  38.   AC_PROG_CC
  39. fi
  40.  
  41. AC_ISC_POSIX
  42. fp_C_PROTOTYPES
  43.  
  44. dnl Define the default output media.
  45. AC_ARG_WITH(media,
  46. [  --with-media(=MEDIA)      use output media Letter (MEDIA), default is A4],
  47.   if test "X$withval" != "Xno"; then
  48.     if test "X$withval" = "Xyes"; then
  49.       ac_cv_value_media='Letter'
  50.     else
  51.       ac_cv_value_media=$withval
  52.     fi
  53.   else
  54.     ac_cv_value_media=${MEDIA-A4}
  55.   fi,
  56.   ac_cv_value_media=${MEDIA-A4}
  57. )
  58. MEDIA=$ac_cv_value_media
  59. AC_SUBST(MEDIA)
  60.  
  61. AC_C_CONST
  62.  
  63. AC_STDC_HEADERS
  64. AC_HAVE_HEADERS(string.h stdlib.h unistd.h stdarg.h math.h pwd.h)
  65.  
  66. dnl Check some functions.
  67. AC_CHECK_FUNCS(strchr memcpy)
  68. AC_CHECK_FUNC(strerror, AC_DEFINE(HAVE_STRERROR), [
  69.   LIBOBJS="$LIBOBJS strerror.o"
  70. ])
  71.  
  72. AC_CHECK_FUNC(getcwd, AC_DEFINE(HAVE_GETCWD), [
  73.   AC_CHECK_FUNC(getwd, AC_DEFINE(HAVE_GETWD))
  74. ])
  75.  
  76. AC_FUNC_VPRINTF
  77.  
  78. dnl -lsun is needed on IRIX-4.0 to get the user passwd entry through
  79. dnl the yellow pages / NIS.
  80. AC_CHECK_LIB(sun, main)
  81.  
  82. dnl Find out where the gethostname() is.
  83. AC_CHECK_FUNC(gethostname, , AC_CHECK_LIB(nsl, main))
  84.  
  85. AC_PROG_RANLIB
  86.  
  87. AC_ARG_ENABLE(debug,
  88. [  --enable-debug      enable debugging], [
  89.   echo enable debugging
  90.   if test -n "$GCC"; then
  91.     CFLAGS="$CFLAGS -Wall"
  92.   fi
  93. ])
  94.  
  95.  
  96. dnl Internationalization.
  97. ALL_LINGUAS="de fi fr sl"
  98. ud_GNU_GETTEXT
  99. AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl)
  100.  
  101. dnl Path separator character.
  102. AC_DEFINE_UNQUOTED(PATH_SEPARATOR, ':')
  103.  
  104. dnl
  105. dnl Scripts
  106. dnl
  107.  
  108. dnl diffpp
  109.  
  110. AC_PATH_PROG(PERL, perl)
  111.  
  112. dnl substitutions
  113.  
  114. AC_SUBST(CFLAGS)
  115. AC_SUBST(LDFLAGS)
  116. AC_SUBST(LIBOBJS)
  117.  
  118.  
  119. AC_OUTPUT([Makefile compat/Makefile afm/Makefile afmlib/Makefile src/Makefile lib/Makefile scripts/Makefile intl/Makefile po/Makefile.in], [sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in >po/Makefile; date > stamp-h])
  120.